//
//  UINavigationController+Rotation.m
//  JR-Player
//
//  Created by 王潇 on 16/3/9.
//  Copyright © 2016年 王潇. All rights reserved.
//

//#import "UINavigationController+Rotation.h"
//
//@implementation UINavigationController (Rotation)
//-(BOOL)shouldAutorotate {
//	return [[self.viewControllers lastObject] shouldAutorotate];
//}
//
//-(NSUInteger)supportedInterfaceOrientations {
//	return [[self.viewControllers lastObject] supportedInterfaceOrientations];
//}
//
//- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
//	return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation];
//}
//@end
//
//@implementation UITabBarController (autoRotate)
//
//- (BOOL)shouldAutorotate {
//	return [self.selectedViewController shouldAutorotate];
//}
//- (NSUInteger)supportedInterfaceOrientations {
//	return [self.selectedViewController supportedInterfaceOrientations];
//}
//
//@end
